package com.lx.others.web;


import com.lx.dm.entity.Category;
import com.lx.others.dao.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("category")
public class CategoryDo {

    @Autowired
    CategoryMapper categoryMapper;

    @RequestMapping("getCate")
    public List<Category> getCate(){
        return categoryMapper.selectList(null);
    }
}
